package com.neusoft.nep.PublicSupervisor;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.net.URL;

public class MainApp extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        FXMLLoader fxmlLoader = new FXMLLoader();
        //为fxml设置要加载的路径
        URL url = getClass().getResource("/com/neusoft/nep/PublicSupervisor/view/Login.fxml");
        //加载视图（NODE根节点)
        fxmlLoader.setLocation(url);
        //创建一个Scene
        Parent root = fxmlLoader.load();
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.show();
    }
}

